package com.ruoyi.interfaced.mapper;

import java.util.List;
import com.ruoyi.interfaced.domain.ShopAddressInter;

/**
 * 地址Mapper接口
 * 
 * @author ruoyi
 * @date 2021-12-07
 */
public interface ShopAddressInterMapper
{

    /**
     * 添加地址
     */
    public int insert (ShopAddressInter shopAddress);

    /**
     * 修改地址
     */
    public int update(ShopAddressInter shopAddress);//修改

    /**
     * 删除地址
     */
    public int delete(ShopAddressInter shopAddress);//删除

    /**
     * 查询地址
     * 
     * @param shopId 地址主键
     * @return 地址
     */
    public ShopAddressInter selectShopAddressByShopId(Long shopId);

    /**
     * 查询地址列表
     * 
     * @param shopAddress 地址
     * @return 地址集合
     */
    public List<ShopAddressInter> selectShopAddressList(ShopAddressInter shopAddress);

    /**
     * 新增地址
     * 
     * @param shopAddress 地址
     * @return 结果
     */
    public int insertShopAddress(ShopAddressInter shopAddress);

    /**
     * 修改地址
     * 
     * @param shopAddress 地址
     * @return 结果
     */
    public int updateShopAddress(ShopAddressInter shopAddress);

    /**
     * 删除地址
     * 
     * @param shopId 地址主键
     * @return 结果
     */
    public int deleteShopAddressByShopId(Long shopId);

    /**
     * 批量删除地址
     * 
     * @param shopIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopAddressByShopIds(Long[] shopIds);
}
